Critical frontier of the Potts and percolation models on triangular-type and kagome-type lattices. I. Closed-form expressions.