Rayleigh-Taylor instability of a two-fluid layer under a general rotation field and a horizontal magnetic field