Photoresponse of porous silicon for potential optical sensing