A Method for the Identification of the Plasma Magnetic Boundary in Machines for Fusion Research