Text this: A locally adaptive time-stepping algorithm for petroleum reservoir simulations