The second law of thermodynamics as a planning tool for rural development