Effect of Mg doping on Cu2ZnSnS4 solar cells prepared by DMF-based solution method