Production and recovery of defects in phosphorus-implanted ZnO