The optical properties of alanine and proline diketopiperazines