Probing the Effects of Strong Electromagnetic Fields with Charge-Dependent Directed Flow in Pb-Pb Collisions at the LHC