On the coherency of X-ray and optical pulsations in auroras