Development and external validation of automated ICD-10 coding from discharge summaries using deep learning approaches