Influence of defects on the thermoelectricity in SnSe: A comprehensive theoretical study