Hodge ideals and spectrum of isolated hypersurface singularities