Local structure of nitrogen in N-doped amorphous and crystalline GeTe