A numerical unitarity formalism for evaluating one-loop amplitudes