Text this: A unified framework for kinematic simulation of rigid-foldable structures