A new framework for the assessment of the environmental sustainability of farms