Origins of visible-light emissions in porous silicon