Design methodology for a simulator of a robotic surgical system