ENH: Add `mode` parameter to `idwtn`

The `mode` parameter of `idwtn` will allow a wavelet decomposition to be
reconstructed using the same parameters as `dwtn`. The new length is
calculated from the coefficient length and the mode. The `take`
parameter is still available and will override the calculated length.