Far-infrared studies of central-cell structure of shallow donors in GaAs and InP