Tunable built-in electric field and optical properties in wurtzite ZnO/MgZnO quantum wells