Sony Group reported a rise in second-quarter net profit, supported by higher earnings from its game and image-sensor businesses.