Synthetic Boundary Conditions for Analytical Magnetic Field Analysis of Halbach Magnet Arrays