SunEdison, once the world's biggest renewable energy developer, has applied for Chapter 11 bankruptcy protection after its aggressive growth plans came unstuck.