Random overlap structures: properties and applications to spin glasses