A surface-immobilized cytochrome c variant provides a pH-controlled molecular switch