Magnetic exchange coupling in cuprate-analog d9 nickelates