Designing bump detection sensors and microswitches with Hall-effect sensors