Giant piezoresistive effect by optoelectronic coupling in a heterojunction