Automated reasoning in differential geometry and mechanics using the characteristic set method