Stratification‐induced order–disorder phase transitions in molecularly thin confined films