Analytical model of transient photoresponse of quantum well infrared photodetectors