Investigation of XNO and XON (where X=Cl or Br) and their protonated isomers