Understanding Oversmoothing in GNNs as Consensus in Opinion Dynamics