West Africa's regional bloc ECOWAS has urged Nigeria and Senegal to ensure peaceful, free and transparent elections next year.