Partially commutative inverse monoids