Faculty of EngineeringUniversity of Porto and Institute for Systems and Computer Engineering, Technology and Science, Porto, Portugal