A method of discrimination between stress-assisted and strain-induced martensitic transformation using atomic force microscopy