Relative phases in Dalitz plot amplitudes for $D^0 \to K_S \pi^+ \pi^-$ and $D^0 \to \pi^0 K^+ K^-$