Private car and public transportation: dynamics of the modal share