better wavetools::resize method