Ion penetration into the magnetosphere through the turbulent magnetopause