Metallic sample preparation for phase transformation analysis