Circumstellar CO emission and pulsational properties of cool giants and supergiants