Impedance of a planar solenoid with a thin magnetic core