C++ interface for surface area calculation
Convert nsc_dclm_pbc() to a C++ class that provides the same interface,
except that the number of surface dots is specified separately, not for
each calculation. The internal implementation is still mainly the same,
but the new interface makes it possible to get rid of the global
variables storing the unit sphere surface dots. This in turn is
requires for making the algorithm thread-safe.
Clean up the implementation a bit by making internal functions static
(they will later become members of the Impl class), and replacing some
error-handling-by-writing-to-stderr-using-global-variables with asserts
or silent proper behavior.
Add tests for all the different paths of the unit sphere surface dot
generation. These help ensure that the algorithm stays unmodified when
it gets refactored for thread safety.
Change-Id: Icf39eb4d105555b2eafdfd70b219a73c294900af