Ultraviolet photodetector based on a MgZnO film grown by radio-frequency magnetron sputtering