Strain relaxation of pseudomorphic heterostructures after hydrogen or helium ion implantation for virtual substrate fabrication