The free energy of Maxwell--Vlasov equilibria