Influence of electron injection on the photoresponse of ZnO homojunction diodes