Fabrication of thin epitaxial and amorphous self-supported layers for device applications