A nanocomposite of silver and thermo-associating polymer by a green route: a potential soft–hard material for controlled drug release