Effects of divergence in ecologically relevant traits on fitness and reproductive isolation in spatially-structured populations