Electromagnetic and ∇B-effects on the modified two-stream instability