Photonics platform for optogenetics applications