Twisted Cappell–Miller holomorphic and analytic torsions