Global integrability for minimizers of anisotropic functionals