Hybrid renewable energy systems and microgrids[electronic resource]