Whole-journey nanomaterial research in an electron microscope: from material synthesis, composition characterization, property measurements to device construction and tests