Time-space regularization of the inverse problem of electrocardiography