Effects of balanced motions and unbalanced internal waves on steric height in the mid-latitude ocean