Exact solution of the Takagi‐Taupin equation for dynamical X‐ray bragg diffraction by a crystal with a transition layer