Density changes of bismuth and alkaline metals at the transition to the liquid state