Energy and Reliability Issues in Cyber-Physical Systems