Semilinear elliptic problems with mixed Dirichlet–Neumann boundary conditions