Optimizing Connection Establishment And Parameter Adaptation In Bluetooth Low-Energy For Intermittently-Powered Devices