Modelling long-period variables - I. A new grid of O-rich and C-rich pulsation models