What are the best practices for prolonging the lifespan of electronic devices like laptops and smartphones?