Charge State Dependence of Si K X-Ray Production in Solid and Gaseous Targets by 40 MeV Oxygen Ion Impact