Determinants of the calcium permeation of ligand-gated cation channels