Computational methods to study mechanical instabilities in soft and multi-physics media