The role of surface potential vorticity in the vertical structure of mesoscale eddies in wind-driven ocean circulations