Text this: Compatibility conditions for microstructures and the austenite-martensite transition