Chemical pressure effect on the superconductor MgCNi3