S1/S0 Potential Energy Surfaces Experience Different Types of Restricted Rotation: Restricted Z/ E Photoisomerization and E/ Z Thermoisomerization by an Out-of-Plane Benzyl Group or In-Plane m-Pyridinium Group?