Community energy projects aim to produce cleaner, cheaper electricity and keep profits local