The effect of magnetic domain structure on Bragg reflection in transmission electron microscopy