The company’s increases in profit and revenue were backed by strong home electronics sales.