A virtual dissipation principle and Lagrangian equations in non-linear irreversible thermodynamics