Superconducting junctions from doped nonsuperconducting CuO 2 layers