determining empirical formula