Encoding-Decoding Transitional Systems for Classes of P Systems