Modulating nonlinear optical responses in 3R-MoS2 Fabry–Pérot microcavities | Synapse