State-Free Inference of State-Space Models: The Transfer Function Approach