Shape design of pin-jointed multistable compliant mechanisms using snapthrough behavior