Semilinear elliptic equations with singular nonlinearities