Lithium is used in rechargeable batteries for laptop computers , mobile phones and electric cars .