Smartphones lift Samsung Electronics to best profit in over two years