Analytical Solution for 3D Tidal Flow with Vertically Varying Eddy Viscosity