Exploring Bitcoin Layer 2 Networks: Scaling, Programmability, and Beyond