The Japanese company raised its annual revenue forecast after delivering a second-quarter profit beat.