Registre de correu electrònic: Reward-based training of recurrent neural networks for cognitive and value-based tasks