Text this: Stable perovskite based photodetector in impedance and capacitance mode