Design and Optimization of Pyroelectric-Polymer Composites for Infrared Sensing and Energy Harvesting