Yahoo profit rises 36 percent, but sales slip