All narcotics, regardless of their origin, reduce pain by: