A Microscopic Model for the Dielectric Function of Porous Silicon