Atomic and molecular hydrogen in gallium arsenide: a theoretical study