The effect of electron and hole doping on the thermoelectric properties of shandite-type Co3Sn2S2