Infrared spectroscopy and secondary ion mass spectrometry of luminescent, nonluminescent, and metal quenched porous silicon