Theory, simulation and nanotechnological applications of adsorption on a surface with defects