Nonstationary diffusion across an arbitrary piecewise-linear potential profile - the exact solution and time characteristics