Ridge energy for thin nematic polymer networks