Invariant slow-roll parameters in scalar–tensor theories