Chemical bonding in hydrogen and lithium under pressure.