Distributed renewable energy generation: a critical review based on the three pillars of sustainability