Stratification dynamics and gravitational circulation in northern San Francisco Bay