Realizing widespread resonance effects to enhance thermoelectric performance of SnTe