The k.p interaction in InP and GaAs from the band-gap dependence of the effective mass