Cowgirls clinch berth in state tournament