Role of singlet oxygen in formation of nanoporous silicon