A Bridge between Graph Neural Networks and Transformers: Positional Encodings as Node Embeddings