若cos2X+(i+tanX)i是纯虚数,则X的取值是?