Layering transitions in colloidal crystal thin films between 1 and 4 monolayers