Theoretical study of band edges in porous silicon