Thin layers deposited by the pyrosol process