Determination of keto–enol equilibrium constants and the kinetic study of the nitrosation reaction of β-dicarbonyl compounds