Enhancement of frequency estimation by spatially correlated environments