Birmingham City set up an FA Cup fourth-round tie against Swansea with a 3-0 win over Bristol Rovers.