Hydrostatic pressure dependence of the energy gaps of CdTe in the zinc-blende and rocksalt phases