What is the primary source of energy generation in main-sequence stars like the Sun?