Robust error bounds for finite element approximation of reaction–diffusion problems with non-constant reaction coefficient in arbitrary space dimension