Electrical generators – how do they work?