Analysis of triterpenes and triterpenoids