Coupled-cavity resonant photodetectors for high-performance wavelength demultiplexing applications