Optical properties of one- and two-dimensional photonic crystals based on silicon