Magnetic Properties of Nanomaterials