Electromagnetic field modeling through the use of Dirac matrices and geometric algebra