Frequency-Domain solver of Maxwell's equations in 3D