Structural dynamics of viral nanomachines