The solutions to the quadratic matrix equation X*AX+B*X+D=0