Indoor localization using LED lights and smartphones