Radical polymers in optoelectronic and spintronic applications