Granite City man sentenced on gun charge