Optical excitation and detection of neuronal activity