Optical activity and defect/dopant evolution in ZnO implanted with Er