Experimental and computational study of the energetics of hydantoin and 2-thiohydantoin