Despite exploding phones and corruption scandals, Samsung just had its best quarter in over three years