Local superlinearity and sublinearity for indefinite semilinear elliptic problems