Dynamics of nonlinear snap--through chains with application to energy harvesting and wave propagation