Task Identification for Adaptive Control of an Upper Limb Prosthesis