Amazon has patented an automated on-demand clothing factory