Graph Neural Networks: Foundation, Frontiers and Applications