Ex situ characterization of phase transformations and associated microstructures in polycrystalline thin films