Photoluminescence and electroluminescence in partially oxidized porous silicon