Electrical characterization for ZnO layers grown on GaN templates by molecular-beam epitaxy