The chattering dynamics of an ideal bouncing ball