SMS dit: Compatibility conditions for microstructures and the austenite-martensite transition