Energy local development and territorial planning