Fundamental principles of a greenhouse thermodynamics