Dissecting the structural dynamics of the nuclear pore complex