Manipulation of molecular structures with magnetic fields door