Nature Photonics 10, 611–616 (2016); published online 8 August 2016; corrected after print 31 August 2016.

In the version of this Article originally published, in Fig. 3a, the units on the left-hand y axis were incorrect; they should have read '(A cm−2)'. This has now been corrected in the online versions of the Article.