Normal vibrations of the electronically excited states of HCN and C2H2