There is ocean of literature available on this thoroughly beaten-up topic. This is certainly not a question to be raised in the research gate. The answer is voluminous and the mechanism could differ from one plant to the other. Please survey the literature