Is there a way for the ODE-integrators to a.) stop the simulation when a specific event occurred or b.) doing a MatLab (Simulink)-like "zero crossing detection", (when these timepoints are not pre-defined?)