In the 1830s and 1840s nearly half of the four million immigrants to America came from Ireland mainly due to: