A CUDA-accelerated electromagnetostatics solver