Dirac equation in external vector fields: Separation of variables