Locality Based Semantics for Process Algebras