Crowd dynamics on a moving platform: Mathematical modelling and application to lively footbridges