Analytical solutions for leakage rates through abandoned wells