Investigation of analytical potential energy function, harmonic frequency and vibrational levels for the X2Σ+ and A2 states of CN radical