Ferroelectric lithography of multicomponent nanostructures