Selective isolation of nitrogen bases from petroleum