Method for immobilizing membrane proteins on surfaces