Polymer metal nanocomposite thin films in situ fabrication real time growth and applications in microwave absorption and chemical sensing