Light scattering from soft modes in ferroelectric BaZnF4 and BaMgF4