Comparison geometry for the Bakry-Emery Ricci tensor