Limit and safety switches