Exact solitary wave and periodic-peakon solutions of the complex Ginzburg-Landau equation: Dynamical system approach