The shape, configuration and stress field of twins and martensite plates