Understanding the Representation Power of Graph Neural Networks in Learning Graph Topology