Application of Spinor Analysis to the Maxwell and Dirac Equations