Rigid Unit Modes and the Flexibility of Network Structures