Resonant hole polarons in GaAs and InP