Manchester United have announced that forward Federico Macheda is to join VfB Stuttgart on loan for the rest of the season.