Investigation into Smart Multifunctional Optical System-On-A-Chip Sensor Platform and Its Applications in Optical Wireless Sensor Networks