Seismic early warning for control of structures with magnetorheological dampers