Spatial modulation of critical current density in niobium based Josephson junctions induced by selective heating