Samsung profits soar on Galaxy, Note sales, but legal damages could hurt