Deep learning-based triage and analysis of lesion burden for COVID-19: a retrospective study with external validation