Chemical modification and structural rearrangements of polyketone-based polymer membrane