Percolation transitions in bilayer graphene encapsulated by hexagonal boron nitride