First principles calculations of the adsorption of NH3 on a periodic model of the silica surface