Relationship between excess entropy and microstructure of undercooled liquid metals