Modeling and Optimization of a Solar Energy Harvester System for Self-Powered Wireless Sensor Networks