Molecular determinants of proton selectivity and gating in the red-light activated channelrhodopsin Chrimson