Subband structure calculation for inversion layers in InAs and InP