Simultaneous Input and State Estimation through a Unifying MMSE Framework with Applications in Structural Dynamics