In situ thickness and temperature measurements of CdTe grown by molecular beam epitaxy on GaAs substrate