On the self-patterning of islands by mechanical constraints during electrochemical deposition