Energy-dependent nebula extent and spatially resolved spectra of the pulsar wind nebula 3C 58