Samsung profit soars to 3-year high on AI chip surge