On-shell Lagrangians as total derivatives and the generalized Komar charge | Publicación