Link between superconductivity and a Lifshitz transition in intercalated Bi2Se3