Identification of intra-bunch dynamics for model-based beam instability control for the CERN super proton synchrotron