SMS: The electromagnetics problem solver