Nearly all of Costa Rica's electricity is clean and renewable. This is how they did it