On the continuous extension of Adams-Bashforth methods and the event location in discontinuous ODEs