Optimization of thermal comfort in building through envelope design