Electronic charge trapping effects in porous silicon