In a radical overhaul of its energy policy, the German government has decided to phase out its nuclear power within ten years.