Modeling and characterization of photoresponse of nanowires with asymmetric contacts and bending strain