Geometries of the excited electronic states of HCN