Buhari re-elected as Nigerian president, rival plans legal challenge