The Correspondence Between Bounded Graph Neural Networks and Fragments of First-Order Logic