Adsorption of interacting Brownian particles onto surfaces. I: General formulation of the macroscopic diffusion equation and results for nonhydrodynamic force interactions