German manufacturers have increased their market share in Germany thanks to sales of environmentally-friendly vehicles.