Gravar-mail: Closed-loop all-optical manipulation of neural circuits in vivo