[2401.09348] On the discrete equivalence of Lagrangian, Hamiltonian and mixed finite element formulations for linear wave phenomena