Spectroscopic and electronic structure of CuIn, AgIn, CuGa and AgGa diatomics