Quantitative ergodic theorems for weakly integrable functions