Ab initio calculation of the circular dichroism of peptides