Bistability of ferroelectric domain walls: Morphotropic boundary and strain effects