Coordination polymer based perovskite device: matched energy levels and photocurrent enhancement in the absence or presence of methanol