The rheology of pharmaceutical and cosmetic semisolids