Electromagnetic effects on electrostatic modes in a magnetized plasma