Probing the ultrafast dynamics of salts in condensed and aqueous phases