heat energy converted to electrical energy examples