Singular set of solutions of semilinear elliptic equations