Facile synthesis of electroactive polypyrrole - chitosan composite nanospheres with controllable diameters