Subleading soft theorem in arbitrary dimensions from scattering equations.