Structure-function relationships in semiconducting polymers : new methods combining transmission electron microscopy and Monte Carlo simulations