Understanding Layer 2 Blockchains: Enhancing Web3 Scalability and Efficiency