Off-diagonal Bethe ansatz solution of the XXX spin chain with arbitrary boundary conditions