Diffraction studies of the structure of amorphous and nanocrystalline metals and alloys: a review