Template Recognition in Inorganic−Organic Hybrid Films Prepared by the Sol−Gel Process