Approximation in FEM, DG and IGA: a theoretical comparison