The evolutionary history of Coleoptera (Insecta) in the late Palaeozoic and the Mesozoic