How one brain circuit encodes memories of both places and events