Covalently modified silicon and diamond surfaces: resistance to nonspecific protein adsorption and optimization for biosensing.