The preparation of pure cadmium telluride and gallium phosphide using a generally applicable procedure