Local S-spectrum analysis of 1-D and 2-D data