Non-occurrence of gap for one-dimensional autonomous functionals