Ridge View uses second quarter spurt to pull away and beat St. Mary’s