A small ball of mass m starts from rest and slides down a frictionless ramp into a vertical circular loop of radius R. Find the minimum starting height h above the loop's bottom for the ball to just complete the loop without losing contact at the top.