Modification and characterization of (energetic) nanomaterials