US electric carmaker Tesla Motors unveils batteries that can power homes and businesses as it attempts to expand beyond its vehicle business.