Task-adaptive physical reservoir computing