How is mass determined from an empirical formula?