Relativistic mechanics of Casimir apparatuses in a weak gravitational field