Structural characterization of II-VI and III-V compound semiconductor heterostructures and superlattices