Optimizing organic electrosynthesis through controlled voltage dosing and artificial intelligence