Nigeria's Buhari sacks military chiefs, spokesman confirms