Rotherham score three first-half goals to beat fellow League Two side Bristol Rovers 3-0 in the second round of the FA Cup.