Ultraviolet photodetectors fabricated from ZnO p-i-n homojunction structures