Moles of ionic substances to grams