On obtaining a consistent set of initial values for a system of differential-algebraic equations