An electrochemical alternative strategy to the synthesis of β-lactams