Differential influences of environment and self-motion on place and grid cell firing