Model for proton transport coupled to protein conformational change: application to proton pumping in the bacteriorhodopsin photocycle.