Tuned magnetic nanoparticles for studying surface-exposed proteins in bacterial cells