Structure, spectra and the effects of twisting of β-sheet peptides. A density functional theory study