Control of separated flows by time periodic Lorentz forces