Cavity-enhanced multispectral photodetector using phase-tuned propagation: theory and design | Synapse