Spectrally Selective Ultrathin Photodetectors Using Strong Interference in Nanocavity Design