Theoretical calculations of the geometries and of the lowest optical transitions of singly and doubly charged oligodiacetylenes