On-Line Plasma Shape Identification via Magnetic Measurements