Elastica catastrophe machine: theory, design and experiments