An Analytical Design Framework for Dimensioning Solar-powered Green IoT Nodes