First principles phonon calculations of dielectric properties in Ba2MWO6 (M = Mg, Zn)