A rotary microgripper with locking function via a ratchet mechanism