Bond contraction and lone pair interaction at nitride surfaces