On Strutinsky's averaging method