Systematics of the s → d and p → d electronic transition at high pressure for the elements I through La