EU says Brexit extension depends on developments in UK