Also, in order to avoid separation of the layers when strain is generated in the layers, the intermediate layer is desirably made from a material which has affinities for both of the substrate and the single-crystalline silicon such as a material which includes at least one of oxygen and nitrogen as an element of the compound.