A method for applying lateral surface eddy diffusion in ocean models with a general vertical coordinate