First principles study of photostability within hydrogen-bonded amino acids