Growth of three-dimensional structures by atomic deposition on surfaces containing defects : simulations and theory