Divergence-free B-spline discretizations for viscous incompressible flows