Quantifying eco-evolutionary contributions to trait divergence in spatially structured systems