Pairwise accelerated failure time models for infectious disease transmission with external sources of infection