Controlled switching between paramagnetic and diamagnetic Meissner effects in superconductor-ferromagnet Pb-Co nanocomposites