Dynamical analysis of a Cournot duopoly model