Encapsulated layer induces boundary effect and twist angle adjust absorption in h-BN/graphene/h-BN heterostructure