Carbon solubility and superconductivity in MgB2