A six-amino-acid motif is a major determinant in functional evolution of HOX1 proteins