Calculation of X-ray wave fields in perfect crystals by applying Riemann's method to solve the Takagi-Taupin equations