Probing the critical behavior of colloidal interfaces by gravity