Polarity control of h-BN nanoribbon edges by strain and edge termination.