Design and implementation of a mechatronic Device for X-ray collimation