Linear and nonlinear optical response based on many-body GW-Bethe–Salpeter and Kadanoff–Baym approaches for two-dimensional layered semiconductors | Synapse