Observation of elastic heterogeneity and phase evolution in 2D layered perovskites using coherent acoustic phonons