Fabrication of homostructural ZnO p-n junctions