Reversible Pressure‐Dependent Mechanochromism of Dion–Jacobson and Ruddlesden–Popper Layered Hybrid Perovskites