Security and Quality in Cyber-Physical Systems Engineering