Effects of backbone rigidity on the local structure and dynamics in polymer melts and glasses | Synapse