Proximity effect in ion-beam-induced deposition of nanopillars