Zn0.76Mg0.24O homojunction photodiode for ultraviolet detection