Determination of the empirical and molecular formula