Adsorption of colloidal particles in the presence of external fields