Modeling the coupled extracellular and intracellular environments in mammalian cell culture