Linearization of an oceanic general circulation model for data assimilation and climate studies