Dynamics of magnetized relativistic tori oscillating around black holes