Magnetic Properties and Spontaneous Polarization of La-, Mn- and N-Doped Tetragonal BiFeO3: A First-Principles Study