Alkali metals inside bi-layer graphene and MoS2: Insights from first-principles calculations