Synthesis and studies of semiconducting piperazine–aniline copolymer