Bond length alternation in hydrocarbon rings