Proximity effect between superconductors and ferromagnets: from thin films to nanostructures