Imposing Dirichlet boundary conditions with Nitsche's method and spline‐based finite elements