Near-infrared photoluminescence of high-resistivity epitaxial GaAs and InP and of epitaxial GaAs on Si