Behavior of selenium in gallium arsenide