Exploring pressure effects on metallic nanoparticles and surrounding media through plasmonic sensing