Electrical to thermal energy conversion