The structural and luminescence properties of porous silicon