Azerbaijan, ethnic Armenians agree to Russian-brokered ceasefire