Wind-driven circulation in coastal and marginal seas