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