Some aspects of linear irreversible thermodynamics in the presence of electromagnetic fields