Electronic structures of melatonin and related compounds studied by photoelectron spectroscopy