Evolution of the plasma environment of comet 67P from spacecraft potential measurements by the Rosetta Langmuir probe instrument