Surface effects in field-induced smectic transitions