What are the devices in which the conversion of energy takes place?