Mirror Synthesis in a Mechatronic System for Superficial Defect Detection