Two protonation switches control rhodopsin activation in membranes