Detection of thin film phase transformations at high-pressure and high-temperature in a diamond anvil cell