In situ fabricated polymer metal semiconductor nanocomposite thin films fluorescence dip catalysis and electrocatalysis