Self-accommodation in martensite