Rapid transit network design for optimal cost and origin-destination demand capture