Magnetic and nonmagnetic impurity effect on magnetic orderings of the isosceles-triangular-lattice antiferromagnet CuMnO2