A cylindrical GEM detector with analog readout for the BESIII experiment