Transgression of Bundle Gerbes to Loop Spaces and its Inverse