Electric or electromagnetic heating