Experimental and theoretical investigations of regioselective functionalization of 3-hydroxy bisindoles with thiols.