Joint Estimation of the Dynamics and Shape of Physiological Signals through Genetic Algorithms