Mechanism of S-nitrosothiol formation and degradation mediated by copper ions