Virtual workshop of mechatronics: a teaching method