Off-diagonal Bethe ansatz solutions of the anisotropic spin-12 chains with arbitrary boundary fields