Behavior of a rectifying junction at the interface between porous silicon and its substrate