Exact solution of the XXX Gaudin model with generic open boundaries