A turbulent mechanism for substorm onset in the Earth's magnetotail