Analysis of sulphur, nitrogen and oxygen containing functional groups in pure compounds and biomedical preparations