A general substructure-based framework for input-state estimation using limited output measurements