Prediction of a new layered phase of nitrogen from first-principles simulations