Algebraic treatment of the confluent Natanzon potentials