Elements of mechanical and chemical philosophy