Agonist-mediated switching of ion selectivity in TPC2 differentially promotes lysosomal function