Samsung Says Weak Demand Hurt Profit