Similar Items: A unified framework for kinematic simulation of rigid-foldable structures