New version of the Baade--Becker--Wesselink method based on multiphase effective temperature measurements of Cepheids