Analysis of sulphur and nitrogen containing functional groups in inorganic compounds and biological preparations