Enhanced optoelectronic properties of Mg doped Cu2O thin films prepared by nebulizer pyrolysis technique