Liquid-crystal phase transitions of thin layers: A photothermal analysis.