The "fine structure" of mathematical revolutions: metaphysics, legitimacy, and rigour. The case of the calculus from Newton to Berkeley and Maclaurin