Bandgap engineering of rare earth element doped nanostructured cadmium oxide thin films