Leyton Orient have booked a home clash with Manchester City in the fourth round of the FA Cup after beating Derby 6-5 on penalties.