How are molecular mass and formula mass related to the mass of a compound?