Modelling the heavens? Astronomical instruments and mechanical clocks