Modelling greenhouse effect: an ecodynamic approach