Porous-silicon coatings for photovoltaic devices