Fabrication of MgO nanostructures and its efficient photocatalytic, antibacterial and anticancer performance.