Influences of interlayer distance and cobalt oxidation state on superconductivity of NaxCoO2