Symbolic expression of transfer functions in compartmental systems with control