Controlling light emission and detection using subwavelength interlayers | Synapse