A techno-commercial assessment of residential and bulk battery energy storage