A new closed-loop control of the injected mass for a full exploitation of digital and continuous injection-rate shaping