At trial for Pittsburgh synagogue shooter, survivors of 2018 massacre describe moments of terror, escape as gunman hunted worshippers in building