Bistable or multistable switching devices