Ab initio description of large amplitude motions in solid N2. I - Librons in the ordered alpha and gamma phases. II - Librons in the beta-phase and the alpha-beta phase transition