On the Use of Polymer-Based Composites for the Creation of Optical Sensors: A Review