Variational integrals of nearly linear growth