Samsung Electronics CEO resigns as profits increase