Representations and derivations of quasi *-algebras induced by local modifications of states