XAFS in the study of semiconductor heterostructures and nanostructures