Soft-templating synthesis and adsorption properties of mesoporous carbons with embedded silver nanoparticles