macroporous thin-layers on p-type silicon: electrochemical preparation and applications