Improved heterojunction quality in Cu2O-based solar cells through the optimization of atmospheric pressure spatial atomic layer deposited Zn1-xMgxO