Photochemical and electro-optic devices for neuromorphic photonics in silicon