Local realizations and local polynomial matrix representations of systems