T–Q relation and exact solution for the XYZ chain with general non-diagonal boundary terms