Evaluating Impacts of Battery Energy Storage System Functionalities on Distribution Systems Using Power Hardware-in-the-Loop Simulation