Novel sputtering method to obtain wide band gap and low resistivity in as-deposited magnesium doped zinc oxide films