Available Energy for Life on a Planet, with or without Stellar Radiation