Toward a curriculum in mechatronics: two experiences in Italy and Spain