Calculation of isotopic pattern for a given molecular formula