Phase transitions in colloidal crystal thin films