Synchrotron emission from nanowire array targets irradiated by ultraintense laser pulses