Distinguishing the effect of surface passivation from the effect of size on the photonic and electronic behavior of porous silicon