Pure spinors as auxiliary fields in the ten-dimensional supersymmetric Yang-Mills theory