Influence of the phase transformation in NaxCoO2 ceramics on thermoelectric properties