In-medium NN interactions and nucleon and meson masses studied with nucleon knockout reactions