Optimising productivity in injection moulding with magnetic clamping