Matrix influence on the optical response of composite bacteriorhodopsin films to ammonia