Theoretical studies of conducting polymers based on substituted polypyrroles