Determination of the transfer function between the injected flow-rate and high-pressure time histories for improved control of common rail diesel engines