Surface effects associated with dislocations in layer crystals