Germany could be facing an "energy gap" in the next few decades if nuclear power stations go off line as planned and opposition continues to coal-fired plants.