Unified picture of the doping dependence of superconducting transition temperatures in alkali metal/ammonia intercalated FeSe