Many current wireless communication, imaging and sensing technologies rely on components that convert oscillating electric and magnetic fields (i.e., electromagnetic waves) into electrical signals. Some of the most used components are so-called p-n diodes, semiconducting devices that combine two types of materials with distinct electrical properties.