Functional switching of ascorbate peroxidase 2 of rice (OsAPX2) between peroxidase and molecular chaperone