Piezoelectric and piezooptic effects in porous silicon