Computing one-loop amplitudes from the holomorphic anomaly of unitarity cuts