Molecular weight and end capping effects on the optoelectronic properties of structurally related ‘heavy atom’ donor–acceptor polymers