Dissertation: Quaternionic Vekua analysis in domains in $\mathbb{R}^3$ with application to electromagnetic systems of equations