Converts US customary units to grams based on densities of ingredients.