Solid-state optical detection of amino acids