The inverse problem of estimating heart parameters from cardiograms