Comparative first-principles study of structural and optical properties of alkali metal azides.