The dynamic of financial crises and its non-monotonic effects on earnings quality