Ferroelastic-switching-driven large shear strain and piezoelectricity in a hybrid ferroelectric