Finite element simulation of dip coating, I: Newtonian fluids