Excitation, transmission and radiation of sound from source distributions in hard-walled ducts of finite length (I): The effects of duct cross-section geometry and source distribution space-time pattern