Electronic structure and third-order nonlinear optical response of conjugated polymer chains bearing periodically arranged side groups