Regular nonlinear dynamics and bifurcations of an impacting system under general periodic excitation