Electrochemically initiated 1,4 additions: a versatile route to the determination of thiols