Rupture energy of a pendular liquid bridge