High-yield synthesized silver orthophosphate nanowires and their application in photoswitch