Fe3O4 nanoflakes in an N-doped carbon matrix as high-performance anodes for lithium ion batteries.