The encoder mechanism of receptor neurons