All-optical electrophysiology: from mice to microbes