Yahoo profit rises, but sales are stagnant