Joint energy and Laplacian regularization in the inverse problem of electrocardiography