Mechanism of nitrite reduction in chloroplasts