Boundary regularity in variational problems