On low-frequency vibrations of a composite string with contrast properties for energy scavenging fabric devices