The free n-category generated by a cube, oriented matroids and higher Bruhat orders