Alkaloid extraction and isolation