Magnetic contribution to the Gibbs energy of elements versus temperature and pressure