Avalanche criticality during ferroelectric/ferroelastic switching