Molecular formula from molar mass and percentage of elements