Novel p-type conductivity in SnO2 thin films by Mg doping