Imaging neural activity in vitro and in vivo using genetically-encoded calcium indicators