Thermal and photochemical methods for the preparation of thin films of cermet materials