Tautomeric preferences of phthalones and related compounds