The country’s experience in converting to renewable power shows rapid progress is achievable, but also highlights the price.