An Event Based Semantics of P-Systems