Nigerian president sacks top military chiefs