Doubly resonant semilinear elliptic problems via nonsmooth critical point theory