Flexible time-to-event models for double-interval-censored infectious disease data with clearance of the infection as a competing risk