Nonmagnetic compensation in ferromagnetic Ga1−xMnxAs and Ga1−xMnxP synthesized by ion implantation and pulsed-laser melting