Structure determination of amorphous and fluid systems