What determines nearshore sandbar response?