Seismic protection of frame structures via semi-active control: modeling and implementation issues