Density measurements and structural properties of liquid and amorphous metals under high pressure