Synthesis and characterization of magnetic nanocomposites and their applications study