Martensitic transformation in thin foil specimen of a shape memory TiNi alloy