A model for dislocations in epitaxially strained elastic films