Structural and chemical characterization of complex nanomaterials at atomic resolution