Analysis of Langmuir probe data: Analytical parametrization, and the importance of the end effect