A framework for biomimetic robot design applied to the development of a robotic model of Drosophila melanogaster