On the three-dimensional magnetic structure of the plasmoid created in the magnetotail at substorm onset