Bi-stable switching devices