Mechanical stress in structures formed by thermal oxidation of amorphous and crystalline silicon