Magnetic field penetration in niobium- and vanadium-based Josephson junctions