Weak isomorphisms of Boolean and Post algebras