The treatment of electron correlation in aperiodic systems. III. Application to polypeptides