Decoding grasp types from the monkey motor cortex and on-line control of a dexterous artificial hand