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