Mode matching for optical antennas