Retention of configuration in double bond protection-deprotection by bromination-cathodic debromination