Preparation and characterization of ferrites as gas sensor materials