Calculations of the magnetic properties of Y2Fe14B and Gd2Fe14X (X = -, B, C, N) by the full-potential linearized augmented plane wave method