A study of spin–orbit vibronic-coupling effects in the A∼3Π state of CCX (X = O, S, Se) and CNY (Y = N, P, As)