Preparation and characterization of pure and doped cadmium oxide thin films using spray pyrolysis technique for sensor applications