Exploring Proof-of-Authority and Proof-of-Stake: Consensus Mechanisms Explained