Guiding or setting position of armatures, e.g. retaining armatures in their end position by permanent magnets