A framework to optimize the efficiency and comfort of robot-assisted feeding systems