Protein adsorption and inactivation on surfaces. Influence of heterogeneities