C*-algebras in tensor categories