Pathogenesis of apical periodontitis and the causes of endodontic failures.