Methodology to develop an intelligent transfemoral prosthesis