Analysis of 2-D configurations with high permeability cores and permanent magnets by a surface-currents method