Pinning-based Switching Control of Cyber-physical Supercapacitor Energy Storage Systems