In-situ study of sol–gel processing by time-resolved infrared spectroscopy