Inverse cascade in Charney-Hasegawa-Mima turbulence