Optical absorption and catalytic activity of molybdenum sulfide edge surfaces