Efficiency Fluctuations of Stochastic Machines Undergoing a Phase Transition.