Germany’s cost of producing solar energy has shrunk to about a third of the price households pay for power after the nation made developers compete for subsidies.