The effect of strain on the domain switching of ferroelectric polycrystals