Structure of nonstationary Gabor frames and their dual systems