Transient processes in two-barrier nanostructures