Single-crystal to single-crystal transformation from a hydrophilic–hydrophobic metal–organic framework to a layered coordination polymer