Comparison of the mechanical strength of a monolayer of silver nanoparticles both in the freestanding state and on a soft substrate