Structural rigidity, thermochromism and piezochromism of layered hybrid perovskites containing an interdigitated organic bilayer