Behavioural and electrophysiological changes during avoidance conditioning to light flashes in the rat