Geometric and functional knowledge in the acquisition of spatial language