, Industrial Electronics Department, School of Engineering, University of Minho, Guimarães, Portugal