Nanostructured diode for infrared photodetection through nondegenerate two-photon absorption