Optimization by discomfort minimization for designing a comfortable net zero energy building in the Mediterranean climate