A Tiny BLE Platform for Wireless Brain Monitoring and Optogenetics Stimulation