Analytic Description of the Rossiter-Mclaughlin Effect for Transiting Exoplanets: Cross-Correlation Method and Comparison with Simulated Data