Phase diagram of ferroelectric nanowires and its mechanical force controllability