Method of preparing derivatives of polyarylene vinylene and method of preparing an electronic device including same