Light scattering by acoustic phonons in ferroelectric and piezoelectric crystals