I was a Samsung engineer — here's how to make your phone last as long as possible before upgrading