The Stability of Positional Encodings for Graphs