On the uniqueness of solutions for a semilinear elliptic problem in convex domains