Improvement of InP crystal quality grown on GaAs substrates and device applications