European leaders gathered in Armenia for two major summits, as security, trade, and the war in Ukraine dominate talks.