Quantum Dirac fermions in a half-space and their interaction with an electromagnetic field