Interplay Between Structural, Electronic, And Magnetic Properties In Rare-Earth Nickelates