Earthquake nucleation on faults with rate-and state-dependent strength