How landmarks and self-motion cues combine to build the brain's spatial maps and guide behavior