Improved photovoltaic effect in CuO/Zn1−xMgxO heterojunction solar cell by pulsed laser deposition