US researchers have developed a power-generating fabric designed to "harvest" electricity from the sun and movement.