Ring-ring isomerization in the series of N-(carbamoyl)-1-aryl-2,3,4,5,6,7-hexahydro-3-hydroxy-6,6-dimethyl-2,4-dioxo-1H-indole-3-carboxamides