New understanding of electromagnetism could enable ‘antennas on a chip’