Bottom-up fabrication of semiconducting 2D coordination nanosheets for versatile bioimaging and photodetecting applications