Small polaron with generic open boundary conditions: Exact solution via the off-diagonal Bethe ansatz