Improved Cu2O-based solar cells using atomic layer deposition to control the Cu oxidation state at the pn junction