3D printed optical sensor for highly sensitive detection of picric acid using perovskite nanocrystals and mechanism of photo-electron transfer.