Studying Neuronal Function Ex Vivo Using Optogenetic Stimulation and Patch Clamp.