Facile synthesis of pure BiFeO3 and Bi2Fe4O9 nanostructures with enhanced photocatalytic activity