Nano-photonic structures for photodetection and thermal transfer control