Protein-surface interactions: an energy based mathematical model