Difference-frequency generation with quantum-limited efficiency in triply-resonant nonlinear cavities