Conformational equilibria and spectroscopy of gas-phase homologous peptides from first principles