Efficient cyclic reduction for QBDs with rank structured blocks